/* 进入动画 */
/* .css-transition-appear {
  transform: translateX(-150px);
}
.css-transition-appear-active {
  transform: translateX(0);
  transition: transform 2s ease;
} */

/* 01_CSSTransition */
/* 
  appear: 初次渲染时，进入动画
  enter: 每次渲染时，进入动画
  exit: 每次渲染时，退出动画
*/
.css-transition-appear, .css-transition-enter {
  opacity: 0;
}

.css-transition-appear-active, .css-transition-enter-active {
  opacity: 1;
  transition: opacity 2s ease;
}

.css-transition-exit {
  opacity: 1;
}

.css-transition-exit-active {
  opacity: 0;
  transition: opacity 2s ease;
}

/* 02_SwitchTransition */
.switch-transition-enter {
  transform: translateX(100px);
  opacity: 0;
}

.switch-transition-enter-active {
  transform: translateX(0);
  opacity: 1;
  transition: all 2s ease;
}

.switch-transition-exit {
  transform: translateX(0);
  opacity: 1;
}

.switch-transition-exit-active {
  transform: translateX(-100px);
  opacity: 0;
  transition: all 2s ease;
}

/* 03_TransitionGroup */
.transition-group-enter {
  transform: translateX(150px);
  opacity: 0;
}

.transition-group-enter-active {
  transform: translateX(0);
  opacity: 1;
  transition: all 2s ease;
}

.transition-group-exit {
  transform: translateX(0);
  opacity: 1;
}

.transition-group-exit-active {
  transform: translateX(150px);
  opacity: 0;
  transition: all 2s ease;
}